package org.xymtop.tbdemo.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.xymtop.tbdemo.xmqtt.client.XMqttCallback;
import org.xymtop.tbdemo.xmqtt.client.XmqttClient;
import org.xymtop.tbdemo.xmqtt.config.XMqttConfig;

@Configuration

public class XmqttConfig {
    @Bean
    public XmqttClient xmqttClient(XMqttConfig xmqttConfig, XMqttCallback xMqttCallback){
        return  new XmqttClient(xmqttConfig,xMqttCallback);
    }
}
